const std = @import("std");

var gpa_instance = std.heap.GeneralPurposeAllocator(.{}){};
var gpa = &gpa_instance.allocator();

const stdin = std.io.getStdIn();
const stdout = std.io.getStdIn();

pub fn input(message: []const u8) ![]u8 {
    var buffer: [256]u8 = undefined;
    try print(message);
    const read = try stdin.read(&buffer);

    return buffer[0 .. read - 1];
}

pub fn print(buffer: []const u8) !void {
    _ = try stdout.write(buffer);
}
